package com.tools.repository;

import com.tools.model.entity.InfoEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

public interface InfoRepository extends JpaRepository<InfoEntity, Long>, JpaSpecificationExecutor<InfoEntity> {
    InfoEntity findAllByUserId(String userId);
}
